package network;

//** Enum des messages que le client peut envoyer au serveur  **/
public enum KrakenClientMsg implements KrakenCommandMaker {
	CIPHER_CLIENT("CIPHER_CLIENT"),
	
	WAITING_HEADER("WAITING_HEADER"),
	//WAITING_DATA("WAITING_DATA"),
	WAITING_FLUX("WAITING_FLUX"),
	WAITING_NEXT_FRAME("WAITING_NEXT_FRAME"),

	END_CLIENT("END_CLIENT"),
	CLIENT_EXIT("CLIENT_EXIT");
	
	public String msg;

	private KrakenClientMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String makeCommand(String... values) {
		StringBuilder sb = new StringBuilder(msg);
		if(values!=null){
			for(String v:values){
				sb.append(" "+v);
			}
		}
		return sb.toString();
	}
	
	
}

